package com.nomito.minimito.service;

import com.baomidou.mybatisplus.extension.service.IService;
    import com.nomito.minimito.common.utils.PageUtils;
import com.nomito.minimito.entity.ImFriendEntity;
import com.nomito.minimito.entity.ImUserEntity;
import com.nomito.minimito.vo.MyFriendsVO;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author nomito
 * @email 1790464356@qq.com
 * @date 2021-05-08 21:04:18
 */
public interface ImFriendService extends IService<ImFriendEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //查询用户好友数量
    long getFriendCount(Long userId);

    Integer preconditionSearchFriend(Long myUserId, String username);

    void passFriendRequest(Long sendUserId, Long acceptUserId);

    List<MyFriendsVO> queryMyFriends(Long acceptUserId);

    boolean deleteForTwoUser(Long myId, Long myfriendId);
}

